<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>手写Promise</title>
</head>

<body>

  <script src="./index.js"></script>

  <script>
    function login() {
      console.log(Promise);
      return new Promise((resove, reject) => {
        console.log(resove);
        console.log(reject);
      });
    }

    login();
  </script>
</body>

</html>